import axios from '../../utils/request';

//登录
export function login(data: any) {
  return axios.request({
    url: '/auth/login',
    method: 'POST',
    data,
  });
}

// 菜单
export function getMenu() {
  return axios.request({
    url: '/menus',
    method: 'get',
  });
}

export default {
  login,
  getMenu,
};
